package org.example.design.command;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Classname XiaoEr
 * @Description TODO
 * @Date 2020/11/9 11:51 上午
 * @Created by xiangjd
 */
public class XiaoEr {
    private Logger logger = LoggerFactory.getLogger(XiaoEr.class);

    private Map<Integer, String> cuisineMap = new ConcurrentHashMap<Integer, String>();

    public void order(int cuisine) {
        //粤菜
        if (1 == cuisine) {
            cuisineMap.put(1, "广东厨师，烹饪鲁菜，宫廷最⼤大菜系，以孔府⻛风味为⻰龙头");
        }
        //苏菜
        if (2 == cuisine) {
            cuisineMap.put(2, "江苏厨师，烹饪苏菜，宫廷第⼆二⼤大菜系，古今国宴上最受⼈人 欢迎的菜系。");
        }
        //鲁菜
        if (3 == cuisine) {
            cuisineMap.put(3, "山东厨师，烹饪鲁菜，宫廷最⼤大菜系，以孔府⻛风味为⻰头。");
        }
        //川菜
        if (4 == cuisine) {
            cuisineMap.put(4, "四川厨师，烹饪川菜，中国最有特⾊色的菜系，也是⺠民间最⼤的菜系。");
        }
    }

    public void placeHolder() {
        logger.info("菜单:{}", JSON.toJSONString(cuisineMap));
    }
}
